﻿using System.Web;
using System.Web.Optimization;

namespace Gas
{
    public class BundleConfig
    {
        // For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/jqueryui", "//code.jquery.com/ui/1.10.4/jquery-ui.js"));
            bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include("~/Scripts/jquery.unobtrusive*", "~/Scripts/jquery.validate*"));

            bundles.Add(new ScriptBundle("~/bundles/jquerymask").Include("~/Scripts/jquery.maskedinput.js", "~/Scripts/jquery.maskMoney.js"));
            bundles.Add(new ScriptBundle("~/bundles/maps", "https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"));
            
            
            // Use the development version of Modernizr to develop with and learn from. Then, when you're
            // ready for production, use the build tool at http://modernizr.com to pick only the tests you need.
            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include("~/Scripts/modernizr-*"));

            bundles.Add(new ScriptBundle("~/bundles/jtable").Include("~/Scripts/jquery.jtable.js"));

            bundles.Add(new StyleBundle("~/Content/jqueryui").Include(
                        "~/Content/themes/base/jquery.ui.core.css",
                        "~/Content/themes/base/jquery.ui.resizable.css",
                        "~/Content/themes/base/jquery.ui.selectable.css",
                        "~/Content/themes/base/jquery.ui.accordion.css",
                        "~/Content/themes/base/jquery.ui.autocomplete.css",
                        "~/Content/themes/base/jquery.ui.button.css",
                        "~/Content/themes/base/jquery.ui.dialog.css",
                        "~/Content/themes/base/jquery.ui.slider.css",
                        "~/Content/themes/base/jquery.ui.tabs.css",
                        "~/Content/themes/base/jquery.ui.datepicker.css",
                        "~/Content/themes/base/jquery.ui.progressbar.css",
                        "~/Content/themes/base/jquery.ui.theme.css"));


            // scripts
            bundles.Add(new ScriptBundle("~/bundles/jquery", "//code.jquery.com/jquery-1.9.1.js"));
            bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include("~/Scripts/bootstrap.js"));
            bundles.Add(new ScriptBundle("~/bundles/steps").Include("~/Scripts/jquery.steps.js"));
            bundles.Add(new ScriptBundle("~/bundles/colorbox").Include("~/Scripts/jquery.colorbox.js"));

            // stylesheets
            bundles.Add(new StyleBundle("~/Content/bootstrap").Include("~/Content/bootstrap.css", "~/Content/bootstrap-responsive.css"));
            bundles.Add(new StyleBundle("~/Content/jtable").Include("~/Content/jtable.css"));
            bundles.Add(new StyleBundle("~/Content/steps").Include("~/Content/jquery.steps.css"));
            bundles.Add(new StyleBundle("~/Content/colorbox").Include("~/Content/colorbox.css"));
            bundles.Add(new StyleBundle("~/Content/css").Include("~/Content/style.css"));

            BundleTable.EnableOptimizations = true;
            bundles.UseCdn = true;
        }

    }
}